<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>课表列表</h2>
	</div>
	<div class="cf">
		<div class="fl">
            <a class="btn" href="{:U('add')}">添加课表</a>
        </div>
        <include file="Public/search"/>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
	<table class="">
    <thead>
        <tr>
		<th class="">学校</th>
		<th class="">系</th>
		<th class="">年级</th>
		<th class="">班级</th>
		<th class="">星期</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
			<td><?php echo parse_id_to_string($vo['school_id'], 'school_id'); ?></td>
			<td><?php echo parse_id_to_string($vo['xi_id'], 'xi_id'); ?></td>
			<td><?php echo parse_id_to_string($vo['nianji_id'], 'nianji_id'); ?></td>
			<td><?php echo parse_id_to_string($vo['banji_id'], 'banji_id'); ?></td>
			<td><?php echo parse_id_to_string($vo['week_id'], 'week_id'); ?></td>
			<td>
				<a href="{:U('Kebiao/edit?id='.$vo['id'])}">修改</a>
				<a href="{:U('Kebiao/del?id='.$vo['id'])}" class="confirm ajax-get">删除</a>
			</td>
		</tr>
		</volist>
		<else/>
		<td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
	<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
	<script type="text/javascript">
    //导航高亮
    highlight_subnav('{:U('Teacher/index')}');
	</script>
</block>
